<?
					$productimage = @explode('.',$rs['product_image_1']);				
					$productimage = @$productimage[0].'_detail.'.@$productimage[1];
?>
<div id="productDetail">
	<div id="bar"><h2><?=@$rs['cat_name'];?></h2></div>
    <h1><?=@$rs['name'];?></h1>
    <div class="photo">
    	<? if(@$rs['product_image_1']!=''): ?>
    	<img src="product/<?=$productimage;?>" />
    	<? endif;?>
   	</div>
    <div id="desc">
    <p><label>รหัสสินค้า :</label> <?=@$rs['product_code'];?></p>
    <p><label>ขนาด :</label> <?=@$rs['size'];?></p>
    <p><?=@$rs['detail'];?></p>
    <p class="price"><label>ราคา :</label> <?=@$rs['price'];?> บาท / <?=@$rs['per_unit'];?></p>
    </div>
</div>
<div class="clear"></div>